﻿using System.Configuration;

namespace POS.USBScanner.Configuration
{
    public class BarcodeScannerListenerConfigurationElementCollection : 
        ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new BarcodeScannerListenerConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            var myElement =
                (BarcodeScannerListenerConfigurationElement)element;

            return myElement.Id;
        }
    }
}
